public class Movie {
    private String title;
    private String director;
    private String actor;
    private String description;
    private int duration;    // 时长，分钟
    private double score;    // 评分 0~10

    public Movie(String title, String director, String actor, String description, int duration, double score) {
        this.title = title;
        this.director = director;
        this.actor = actor;
        this.description = description;
        this.duration = duration;
        this.score = score;
    }

    public String getTitle() { return title; }

    public void setTitle(String title) { this.title = title; }

    public String getDirector() { return director; }

    public void setDirector(String director) { this.director = director; }

    public String getActor() { return actor; }

    public void setActor(String actor) { this.actor = actor; }

    public String getDescription() { return description; }

    public void setDescription(String description) { this.description = description; }

    public int getDuration() { return duration; }

    public void setDuration(int duration) { this.duration = duration; }

    public double getScore() { return score; }

    public void setScore(double score) { this.score = score; }

    @Override
    public String toString() {
        return "片名：" + title + "，导演：" + director + "，主演：" + actor +
                "，时长：" + duration + "分钟，评分：" + score;
    }
}
